<%@page import="com.aptech.DAO.realEstateTypeDAO"%>
<form action="avSearch.do" method="post">
    <div id="search">
        <div id="mn_search_header_left"></div>
        <div id="mn_search_header_center">Search</div>
        <div id="mn_search_header_right"></div>

        <div id="mn_search_content_left"></div>
        <div id="mn_search_content_center">
            <div class="leftSearch">Style : </div>
            <div class="searchCommand">
                <select name="realEstateStyleID">
                    <option value="0">
                        Choose ...
                    </option>
                    <%
                    com.aptech.DAO.realEstateStyleDAO objrealEstateStyleDAO1 = new com.aptech.DAO.realEstateStyleDAO();
                                java.util.ArrayList<com.aptech.model.RealEstateStyle> listRealStateStyle = new java.util.ArrayList<com.aptech.model.RealEstateStyle>();
                                listRealStateStyle = objrealEstateStyleDAO1.getAllRealEstateStyle();
                                for (int i = 0; i < listRealStateStyle.size(); i++) {
                                    com.aptech.model.RealEstateStyle objRealEstateStyle = listRealStateStyle.get(i);
                    %>
                    <option value="<%=objRealEstateStyle.getRealEstateStyleID()%>">
                        <%=objRealEstateStyle.getRealEstateStyleName()%>
                    </option>
                    <% }%>
                </select>
            </div>
            <div class="rightSearch">Type : </div>
            <div class="searchCommand">
                <select name="realEstateTypeID">
                    <option value="0">
                        Choose ...
                    </option>
                    <%


                                for (int i = 0; i < listRealStateType.size(); i++) {
                                    com.aptech.model.RealEstateType objRealEstateType = listRealStateType.get(i);
                    %>
                    <option value="<%=objRealEstateType.getRealStateTypeID()%>">
                        <%=objRealEstateType.getRealStateTypeName()%>
                    </option>
                    <% }%>
                </select>
            </div>
            <div class="leftSearch">City : </div>
            <div class="searchCommand"><input type="text" name="city" /></div>
            <div class="rightSearch">No of Bedrooms : </div><div class="searchCommand"><input type="text" name="noOfBedrooms" /> </div>
            <div class="leftSearch">Street: </div><div class="searchCommand"><input type="text" name="street" /> </div>
            <div class="rightSearch">No of Bathrooms : </div><div class="searchCommand"><input type="text" name="noOfBathrooms" /> </div>
            <div class="leftSearch">Price : </div><div class="searchCommand">
                <select name="price">
                    <option value="0">
                        Choose ...
                    </option>
                    <option value="1">
                        50.000 -> 500.000
                    </option>
                    <option value="2">
                        500.000 -> 1 tr
                    </option>
                    <option value="3">
                        1 tr -> 2 tr
                    </option>
                    <option value="4">
                        2 tr -> 3 tr
                    </option>
                    <option value="5">
                        3 tr -> 7 tr
                    </option>
                    <option value="6">
                        7 tr -> 10 tr
                    </option>
                    <option value="7">
                        10 tr -> 50 tr
                    </option>
                    <option value="8">
                        50 tr -> 100 tr
                    </option>
                    <option value="9">
                        100 tr -> 500 tr
                    </option>
                    <option value="10">
                        500 tr -> 1 ti
                    </option>
                    <option value="11">
                        1 ti -> 3 ti
                    </option>
                    <option value="12">
                        3 ti -> 7 ti
                    </option>
                    <option value="13">
                        7 ti -> 10 ti
                    </option>
                    <option value="14">
                       > 10 ti
                    </option>
                </select></div>
            <div class="rightSearch">Orientation : </div><div class="searchCommand"><input type="text" name="orientation" /> </div>
            <div class="leftSearch">Deposit : </div><div class="searchCommand">
                <select name="deposit">
                    <option value="0">
                        Choose ...
                    </option>
                    <option value="1">
                        50.000 -> 500.000
                    </option>
                    <option value="2">
                        500.000 -> 1 tr
                    </option>
                    <option value="3">
                        1 tr -> 2 tr
                    </option>
                    <option value="4">
                        2 tr -> 3 tr
                    </option>
                    <option value="5">
                        3 tr -> 7 tr
                    </option>
                    <option value="6">
                        7 tr -> 10 tr
                    </option>
                    <option value="7">
                        10 tr -> 50 tr
                    </option>
                    <option value="8">
                        50 tr -> 100 tr
                    </option>
                    <option value="9">
                        100 tr -> 500 tr
                    </option>
                    <option value="10">
                        > 500 tr
                    </option>
                </select> </div>
            <div class="rightSearch">Area :</div><div class="searchCommand">
                <select name="area">
                    <option value="0">
                        Choose ...
                    </option>
                    <option value="1">
                        10 m2 -> 20 m2
                    </option>
                    <option value="2">
                        20 m2 -> 30 m2
                    </option>
                    <option value="3">
                        30 m2 -> 40 m2
                    </option>
                    <option value="4">
                        40 m2 -> 50 m2
                    </option>
                    <option value="5">
                        50 m2 -> 60 m2
                    </option>
                    <option value="6">
                        60 m2 -> 70 m2
                    </option>
                    <option value="7">
                        70 m2 -> 80 m2
                    </option>
                    <option value="8">
                        80 m2 -> 90 m2
                    </option>
                    <option value="9">
                        90 m2 -> 100 m2
                    </option>
                    <option value="10">
                        > 100 m2
                    </option>
                </select></div>
            <div>
                &nbsp;
            </div>
            <div id="a0"><input type="submit" name="btnSearch" value="          Search         " /></div>
        </div>
        <div id="mn_search_content_right"></div>
        <div id="mn_search_footer_left"></div>
        <div id="mn_search_footer_center"></div>
        <div id="mn_search_footer_right"></div>
    </div><!--End #Search-->
</form>
